home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Tool Chest / Interfaces & Libraries / Interfaces / AIncludes / LAPEqu.a < prev    next >
Encoding:
Text File  |  1993-11-30  |  5.0 KB  |  132 lines  |  [TEXT/MPS ]

  1. ;    File:        LAPEqu.a
  2. ;
  3. ;    Copyright:    © 1983-1993 by Apple Computer, Inc.
  4. ;                All rights reserved.
  5. ;
  6. ;    Version:    System 7.1 for ETO #11
  7. ;    Created:    Tuesday, March 30, 1993 18:00
  8. ;
  9. ;___________________________________________________________________________
  10.  
  11.  IF &TYPE('__INCLUDINGLAPEQU__') = 'UNDEFINED' THEN
  12. __INCLUDINGLAPEQU__   SET 1
  13.  
  14. ;
  15. ; LAP Manager call codes passed in D0 (call at [ATalkHk2] + 2)
  16. ;
  17. LRdDispatch EQU         1                               ; Dispatch to protocol handler
  18. LWrtInsert  EQU         2                               ; Insert in LAPWrite hook
  19. LWrtRemove  EQU         3                               ; Remove from LAPWrite hook
  20. LWrtGet     EQU         4                               ; Get who's in LAPWrite hook
  21. LSetInUse   EQU         5                               ; Set address in use flag
  22. LGetSelfSend EQU        6                               ; Get value of self send flag
  23. LAARPAttach EQU         7                               ; Attach an AARP listener
  24. LAARPDetach EQU         8                               ; Detach an AARP listener
  25. LGetATalkInfo EQU       9                               ; Get AppleTalk info
  26. LGetPortInfo EQU        10                              ; Get port info
  27. LOpenADEV   EQU         11                              ; Open ADEV file
  28. LNSetInUse  EQU         12                              ; Port-based set-in-use call
  29. LGetBridgeInfo EQU      13                              ; Get bridge info
  30. LSetATalkInfo EQU       14                              ; Set AppleTalk info
  31. LShutdownBridge EQU     15                              ; Shut down bridge
  32. LInit       EQU         16                              ; init run time LAP manager
  33. LUsePortB   EQU         17                              ; request use of printer port
  34. LFreePortB  EQU         18                              ; grant use of printer port
  35. LStatPortB  EQU         19                              ; obtain current printer port status
  36. LNetAlert   EQU         20                              ; notify user of network alert condition
  37. L802Attach  EQU         21                              ; attach an 802.2 protocol handler
  38. L802Detach  EQU         22                              ; detach an 802.2 protocol handler
  39. LAddAEQ     EQU         23                              ; add AppleTalk event queue entry
  40. LRmvAEQ     EQU         24                              ; remove AppleTalk event queue entry
  41. LGetAEQ     EQU         25                              ; get pointer to AppleTalk event queue
  42. LLastCall   EQU         LGetAEQ                         ; Last valid call
  43.  
  44. ;
  45. ; Flag bits passed in D1 on LWrtInsert
  46. ;
  47. LWSelfSend  EQU         7                               ; ADEV handles self send
  48. LWSrvrWks   EQU         5                               ; Honor server/wks bit
  49. LWVMdefer   EQU         4                               ; buffer and defer incoming packets
  50. LWReserved  EQU         0                               ; Reserved for internal use
  51.  
  52. ;
  53. ; atlk call codes passed in D0 (call at atlk start plus 2)
  54. ;
  55. AInstall    EQU         1                               ; Installation
  56. AShutdown   EQU         2                               ; Shutdown
  57. AGetInfo    EQU         3                               ; Get link information
  58. AGetMCast   EQU         4                               ; Get multicast addr
  59. ASetMCast   EQU         5                               ; Set multicast addr
  60. ADelMCast   EQU         6                               ; Delete multicast addr
  61. AOpen       EQU         7                               ; Open an ATlk
  62. AClose      EQU         8                               ; Close an ATlk
  63. AEnq        EQU            9                                ; send ENQ's for a node address
  64. ADelAddr    EQU            10                                ; remove an established node address
  65.  
  66. ;
  67. ; ADEV call code passed in D0 (call at ADEV start)
  68. ;
  69.  
  70. GetADEV     EQU         101                             ; Get next ADEV
  71. SelectADEV  EQU         102                             ; Select ADEV
  72. ReSelADEV   EQU         103                             ; Re-selected ADEV
  73.  
  74. LAPMgrPtr   EQU         $B18                            ; This points to our start (???ATalkHk2?)
  75. LAPMgrCall  EQU         2                               ; Offset to make LAP manager calls
  76. atlkCall    EQU         2                               ; Offset to make atlk calls at
  77.  
  78. ;
  79. ; Resource IDs
  80. ;
  81. adevBaseID  EQU         -4032                           ; Base resource ID for ADEVs
  82.  
  83. ;
  84. ; atlk AGetInfo call
  85. ;
  86.                                                         ; (big enough to handle 6 byte link addr)
  87.  
  88. ATlkInfo    RECORD      0                               ; link information
  89. Version     DS.W        1                               ; version number
  90. InfoLength  DS.W        1                               ; length of this rec
  91. LinkSpeed   DS.L        1                               ; speed of link in bits/second
  92. BandWidth   DS.B        1                               ; bandwidth factor
  93. Reserved    DS.B        3
  94. Flags       DS.B        1                               ; informative flags (see below)
  95. LinkAdrLen  DS.B        1                               ; link address length in bytes
  96. LinkAddress DS.B        6                               ; start of link address (reserve 6 bytes)
  97. MaxNodes    DS.W        1                               ; max. number of nodes (base zero)
  98. Size        EQU         *
  99.             ENDR
  100.  
  101. AInfoVers   EQU         3                               ; version number describes reply buffer below
  102. AInfoSz     EQU         ATlkInfo.Size                   ; size in bytes of reply buffer
  103.  
  104. ;
  105. ; atlk AGetInfo flags
  106. ;
  107. AtlkExtended EQU        7                               ; bit in on if link has extended addressing
  108. AtlkROnly   EQU         6                               ; true if link is for router only ports
  109.  
  110. ;    Transition Queue Structures
  111.  
  112. ;    Transition Queue Element
  113.  
  114. ATQel            RECORD    0
  115. AeQQLink        DS.L    1                                ; link field
  116. AeQQType        DS.W    1                                ; queue type (dont care)
  117. AeQCallAddr        DS.L    1                                ; procedure address
  118. AeQSize            EQU        *
  119.                 ENDR
  120.  
  121. ;    Transitions
  122. ; %%% Change spelling to match inside Mac
  123. ;AOpenTask        EQU        0                                ; q type for open
  124. ;ACloseTellTask    EQU        2
  125. ;ACloseAskTask    EQU        3
  126. ;ACanclAskTask    EQU        4
  127. ATTransOpen            EQU        0                            ; Open Transition
  128. ATTransClose        EQU        2                            ; Close Transition
  129. ATTransClosePrep    EQU        3                            ; Close Prep Transition
  130. ATTransCancelClose    EQU        4                            ; Cancel Close Prep
  131.  
  132.                    ENDIF    ;  ...already included